package com.practice.agObjectAndClass007.classType.general;

public class GeneralClass {

    // 构造器
    public GeneralClass() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    // public 访问权限类型的实例域
    public String name;
    // protected 访问权限类型的实例域
    protected int age;
    // 默认访问权限类型的实例域
    double height;
    // private 访问权限类型的实例域
    private double weight;
}
